package com.ktjy.ktmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjy.ktmall.domain.vo.Order;
import com.ktjy.ktmall.mapper.OrderMapper;
import com.ktjy.ktmall.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> selectOrderList(Order order) {
        return orderMapper.selectOrderList(order);
    }

    @Override
    public Order selectOrderByOrderSn(Long id) {
        return orderMapper.selectOrderByOrderSn(id);
    }
}
